export default [
  [
    {
      renderType: "input",
      itemName: "name",
      itemLabel: "姓名",
      itemPlaceholder: "请输入姓名",
      itemRules: [
        { required: true, message: "请输入姓名" },
        { max: 10, message: "姓名不能超过10个字符" },
        { min: 2, message: "姓名不能少于2个字符" },
      ],
    },
    {
      renderType: "input",
      itemName: "phone",
      itemLabel: "手机号",
      itemPlaceholder: "请输入手机号",
      itemRules: [
        { required: true, message: "请输入手机号" },
        { max: 11, message: "手机号不能超过11位" },
        { min: 11, message: "手机号不能少于11位" },
      ],
    },
  ],
  [
    {
      renderType: "input",
      itemName: "age",
      itemLabel: "年龄",
      itemPlaceholder: "请输入年龄",
      itemRules: [
        { required: true, message: "请输入年龄" },
        { max: 100, message: "年龄不能超过100岁" },
      ],
    },
    {
      renderType: "select",
      itemName: "level",
      itemLabel: "级别",
      itemPlaceholder: "请选择级别",
      itemRules: [{ required: true, message: "请选择级别" }],
      itemOptions: [
        { label: "初级", value: "初级" },
        { label: "中级", value: "中级" },
        { label: "高级", value: "高级" },
      ],
    },
  ],
  [
    {
      renderType: "select",
      itemName: "sex",
      itemLabel: "性别",
      itemPlaceholder: "请选择性别",
      itemRules: [{ required: true, message: "请选择性别" }],
      itemOptions: [
        { label: "男", value: "男" },
        { label: "女", value: "女" },
      ],
    },
    {
      renderType: "date",
      itemName: "entryTime",
      itemLabel: "入职时间",
      itemPlaceholder: "请选择入职时间",
      itemRules: [{ required: true, message: "请选择入职时间" }],
    },
  ],

  [
    {
      renderType: "popover",
      itemName: "departmentName",
      itemLabel: "部门",
      itemPlaceholder: "请选择部门",
      itemRules: [{ required: true, message: "请输入部门" }],
      itemOptions: [
        { label: "部门1", value: "部门1" },
        { label: "部门2", value: "部门2" },
        { label: "部门3", value: "部门3" },
        { label: "部门4", value: "部门4" },
        { label: "部门5", value: "部门5" },
        { label: "部门6", value: "部门6" },
        { label: "部门7", value: "部门7" },
        { label: "部门8", value: "部门8" },
        { label: "部门9", value: "部门9" },
        { label: "部门10", value: "部门10" },
      ],
    },

    {
      renderType: "input",
      itemName: "workAge",
      itemLabel: "工龄",
      itemPlaceholder: "请输入工龄",
      itemRules: [{ required: true, message: "请输入工龄" }],
    },
  ],
  [
    {
      renderType: "input",
      itemName: "department",
      itemLabel: "部门名称",
      style: { display: "none" },
      //   itemPlaceholder: "请输入部门名称",
      //   itemRules: [{ required: true, message: "请输入部门名称" }],
    },
  ],
];
